    
<? 
require_once 'includes/funciones.php';
include ("seguridad.php");
conexion();
?>
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title><?php titulo();?></title>
<link rel="stylesheet" href="2col_rightNav.css" type="text/css" />
<script type="text/javascript"  src="plugins/jquery.js"></script>
<link rel="stylesheet"  href="plugins/jq_ui/css/custom-theme/jquery-ui-1.8.14.custom.css">
<script type="text/javascript" src="plugins/jquery_validate/jquery.validate.js"></script>
<script type="text/javascript"  src="plugins/thickbox/thickbox.js"></script>
<link rel="stylesheet" href="plugins/thickbox/thickbox.css" type="text/css" media="screen" />

	


<style type="text/css">
<!--


</style>

</head>
<!-- The structure of this file is exactly the same as 2col_leftNav.html;
     the only difference between the two is the stylesheet they use -->

<body>
    <div   class="supercontendeor">
 <div id="encabezado">
   	<?php
	require_once("encabezado.php");

	?> 
</div>
<!-- fin encabesado -->
<div id="content">
  <div id="breadCrumb"></div>
  <h2 id="pageName">Buscar Capa Por Categoria </h2>
  <div class="feature">
    <form id="form1" name="form1" method="post" action="">

  <label> </label><label></label>
  <br>
  <label></label>
  
    <p>&nbsp;</p>
    <table width="710" border="0">
      <tr>
        <td width="138"><label>
          <div align="right">Buscar </div>
          </label>          </td>
        <td width="210"><label>
          <div align="right">
            <input name="textfield" type="text" size="40">
          </div>
        </label></td>
        <td width="348"><div id="dptoayuda">
          <label></label>
        </div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div align="right">
          <input type="submit" name="Submit" value="Buscar">
        </div></td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <p>&nbsp;</p>
    </form>
    <div id= "resultados">    </div>
    
    <p>
    <hr>

<div id="resultado"  class="resultado">
      <table width="612" >
        <tr align="center" class="ui-widget-header" >
          <td width="287" height="21">Titulo</td>
          <td width="86"></td>
          <td width="138">Descargar </td>
		  <td width="83">Imagen </td>
        </tr>
		<?php 
		$result=mysql_query("select c.id,c.titulo,c.folder,c.`file` as f ,c.imagen   from samptyt.capas as c WHERE c.`porv-id`=1 order by c.id" );

while($row=mysql_fetch_array($result))
		{?>
        <tr  >
          <td><?php echo $row['titulo']; ?></td>
          <td align="center"><a href="<?php echo 'capavermas.php?var='.$row['id']; ?>">Ver Mas</a></td>
          <td align="center"><a href="<?php echo $row['folder'].''.$row['f']; ?>">Descargar capa</a></td>
		  <td align="center" ><br><a href="<?php echo $row['folder'].''.$row['imagen']; ?>" title="<?php echo $row['titulo']; ?>" class="thickbox">
		  <img src="<?php echo $row['folder'].''.$row['imagen']; ?>" alt="1.PNG" width="66" height="60"/></a><br></td>
		  
        </tr>
    
      

	 
      <?php }


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>  </table></div>
     
  </div>
  <div class="story">
    <h3>&nbsp;</h3>
  </div>
  <div class="story"></div>
</div>
<!--end content -->
<div id="menuderecha">
     	<?php
	require_once("menuderecha.php");

	?> 
</div>
<!--fin menuderecha -->
<div id="footer">
     	<?php
	require_once("footer.php");

	?> 
</div>

<br />
    </div>
</body>
</html>